package com.aaa.proxymode.demo03;


/**
 * @author C-Q
 * @version 1.1.0
 * @Description:
 * @date 2022/11/9
 */
public class Test {
    public static void main(String[] args) {
        ProxyFactory proxy = new ProxyFactory(new Landlord());
        //获取代理对象
        Landlord instance = (Landlord) proxy.getInstance();
        instance.hire();
    }
}
/*JDK动态代理：必须基于接口实现【被代理的类必须实现接口】*/
